package com.healthy.medical.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.healthy.medical.mapper.PhysicalExamPackagesMapper;
import com.healthy.medical.domain.PhysicalExamPackages;
import com.healthy.medical.service.IPhysicalExamPackagesService;

/**
 * 体检套餐Service业务层处理
 * 
 * @author 束伟
 * @date 2024-03-29
 */
@Service
public class PhysicalExamPackagesServiceImpl implements IPhysicalExamPackagesService 
{
    @Autowired
    private PhysicalExamPackagesMapper physicalExamPackagesMapper;

    /**
     * 查询体检套餐
     * 
     * @param id 体检套餐主键
     * @return 体检套餐
     */
    @Override
    public PhysicalExamPackages selectPhysicalExamPackagesById(Long id)
    {
        return physicalExamPackagesMapper.selectPhysicalExamPackagesById(id);
    }

    /**
     * 查询体检套餐列表
     * 
     * @param physicalExamPackages 体检套餐
     * @return 体检套餐
     */
    @Override
    public List<PhysicalExamPackages> selectPhysicalExamPackagesList(PhysicalExamPackages physicalExamPackages)
    {
        return physicalExamPackagesMapper.selectPhysicalExamPackagesList(physicalExamPackages);
    }

    /**
     * 新增体检套餐
     * 
     * @param physicalExamPackages 体检套餐
     * @return 结果
     */
    @Override
    public int insertPhysicalExamPackages(PhysicalExamPackages physicalExamPackages)
    {
        return physicalExamPackagesMapper.insertPhysicalExamPackages(physicalExamPackages);
    }

    /**
     * 修改体检套餐
     * 
     * @param physicalExamPackages 体检套餐
     * @return 结果
     */
    @Override
    public int updatePhysicalExamPackages(PhysicalExamPackages physicalExamPackages)
    {
        return physicalExamPackagesMapper.updatePhysicalExamPackages(physicalExamPackages);
    }

    /**
     * 批量删除体检套餐
     * 
     * @param ids 需要删除的体检套餐主键
     * @return 结果
     */
    @Override
    public int deletePhysicalExamPackagesByIds(Long[] ids)
    {
        return physicalExamPackagesMapper.deletePhysicalExamPackagesByIds(ids);
    }

    /**
     * 删除体检套餐信息
     * 
     * @param id 体检套餐主键
     * @return 结果
     */
    @Override
    public int deletePhysicalExamPackagesById(Long id)
    {
        return physicalExamPackagesMapper.deletePhysicalExamPackagesById(id);
    }
}
